package cn.gson.springboot.model.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.alibaba.fastjson.JSONArray;

import cn.gson.springboot.model.pojos.User;

@Mapper
public interface UserMapper {
	
	/*//id查询user
	public JSONArray findByid(@Param("user_id") Integer user_id);*/
	/*id查询user*/
	
	public User findByid(Integer userId);
	//清除角色
	public User qcjs(@Param("user_id") Integer user_id);
	public List<Map<String,Object>>cxsy();
	
	public User cxxq(@Param("user_id") Integer user_id);
	public JSONArray cxxqa(@Param("user_id") Integer user_id);
	public List<Map<String,Object>> mhcxyh(@Param("user_Name") String userName);
	//查询所有医生
	public  JSONArray YsAll();
	
	//查询所有护士
	public  JSONArray HsAll();
	
	
	//<!--根据用户id查角色  -->
	
	public  JSONArray jueSe(@Param("user_id") Integer user_id);
	
}
